"""
给一个半径求总造价
"""
class Circle:

    def __init__(self,r):
        self.r=r

    def get_area(self):
        return 3.14*self.r**2

    def get_perimeter(self):
        return 2*3.14*self.r

class Out_circle(Circle):
    def __int__(self):
        super().__int__(r)
        self.r=r+3
      
def main():
    """输入半径得出总费用"""
    r = float(input('请输入内圆半径:'))
    c1 = Circle(r)
    c2 = Out_circle()
    print(f'跑道的预算是{(c2.get_area()-c1.get_area())*35.5}墙的预算是{c2.get_perimeter()*28.5}')


if __name__=='__main__':
    main()

